<%
var containerParam = {
	title: '菜单管理',
	currentMenu: 'menu',
	jsArray: [ctxPath + '/js/menu/form.js'],
	breadcrumbMap: {
		'首页': ctxPath + '/',
		'菜单管理': ctxPath + '/menu/list',
		'添加/编辑': null
	}
};
layout('/common/_website_container.html', containerParam){
%>
<div class="layui-card">
	<div class="layui-card-body padding-15">
		<form class="layui-form" lay-filter="form">
			<#formhidden name="id"/>
			<#formselect label="父菜单" name="parentId" value="${entity.parentId!}" itemValue="id" itemDesc="name" items="${rootMenus}"/>
			<#formselect label="*类型" name="type" value="${entity.type.value!}" itemValue="value" itemDesc="desc" items="${@MenuType.values()}" verify="required"/>
			<#forminput label="*名称" name="name" verify="required"/>
			<#forminput label="*英文名称" name="eName" verify="required|english"/>
			<#forminput label="*链接地址" name="url" verify="required" hide=""/>
			<#forminput label="排序" name="sort" verify="integer"/>
			<#formselects label="可访问角色" name="roles" value="${@StringUtils.splitToInteger(entity.roles!, ',')}" itemValue="value" itemDesc="cName" items="${@Role.values()}"/>
			<#formsubmit/>
		</form>
	</div>
</div>
<% } %>
